package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuSupplierMaster;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 供应商主数据业务对象 manu_supplier_master
 *
 * @author Bin Liu
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuSupplierMaster.class, reverseConvertGenerate = false)
public class ManuSupplierMasterBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 供应商代码
     */
    @NotNull(message = "供应商代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long code;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 联系热邮箱
     */
    @NotBlank(message = "联系热邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactMail;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contact;


}
